package com.soft.service;

import com.soft.dao.SalaryDaoImpl;
import com.soft.pojo.Salary;

import java.util.ArrayList;

/**
 * @author ruoxi
 * @create 2021-12-27 11:24
 */
public class SalaryService {
    private SalaryDaoImpl salaryDao = new SalaryDaoImpl();
    public int findSalaryCount() {
        return salaryDao.selectByAll().size();
    }

    public ArrayList<Salary> findSalaryByPage(int currentPage, int currentCount) {
        return (ArrayList<Salary>) salaryDao.selectSalaryRecordByPage(currentPage,currentCount);
    }
}
